package chapter22;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/2/26 17:22
 */
public class ContainerDemo {
    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        String a = "abc";
        System.out.println(a.charAt(5));

        ISimpleContainer container = new SimpleContainer();
        ServiceA serviceA = container.getInstance(ServiceA.class);
        serviceA.callB();
    }
}
